package org.zpmis.domain.mail.service;

import org.zpmis.domain.mail.model.AttachMailMessageParam;
import org.zpmis.domain.mail.model.SimpleMailMessageParam;
import org.zpmis.domain.mail.model.TemplateMailMessageParam;

public interface MailService {

    /**
     *  发送普通文本邮件 不支持附件
     */
    public boolean sendSimpleMail(SimpleMailMessageParam messageParam) throws Exception;

    /**
     * 发送带附件的邮件
     */
    public boolean sendAttachInputStreamMail(AttachMailMessageParam messageParam) throws Exception;

    /**
     *发送模板邮件 支持附件
     * @return
     * @throws Exception
     */
    public boolean sendTemplateMail(TemplateMailMessageParam messageParam) throws Exception;
}
